package com.peng.rpc.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 方法调用状态码的枚举类
 * @author Wonderson
 * @email wpp.ds@foxmail.com
 * @date 2022/2/27 18:47
 */
@Getter
@AllArgsConstructor
public enum ResponseCode {

    /**
     * 状态码+状态码注释
     */
    SUCCESS(200,"调用方法成功"),
    FAIL(500,"调用方法失败"),
    NOT_FOUND_METHOD(500,"未找到指定方法"),
    NOT_FOUND_CLASS(500,"未找到指定类");

    /**
     * 响应状态码
     */
    private final int code;

    /**
     * 响应附加说明信息
     */
    private final String message;


}
